//点击主页登录按钮，弹出登录框
function  doLogin()
{
	var dialogContainer = document.getElementById("dialogContainer");
	var bodyLogin = document.getElementById("ldhLogin");
	bodyLogin.style.display = "block";
	dialogContainer.style.display = "block";
			
}


//点击主页注册按钮，弹出注册框
function doRegister(){
	
	var dialogContainer = document.getElementById("dialogContainer");
	var bodyRegister = document.getElementById("ldhRegister");
	bodyRegister.style.display = "block";
	dialogContainer.style.display = "block";
}

//点击登录框的注册按钮，弹出注册框
function doDialogRegister(){
		
	var dialogContainer = document.getElementById("dialogContainer");
	var bodyRegister = document.getElementById("ldhRegister");
	var bodyLogin = document.getElementById("ldhLogin");
	bodyRegister.style.display = "block";
	bodyLogin.style.display = "none";
}

//点击弹框背景，弹框背景都消失
function doDialogContainer(){
	var dialogContainer = document.getElementById("dialogContainer");
	var bodyRegister = document.getElementById("ldhRegister");
	var bodyLogin = document.getElementById("ldhLogin");
	bodyLogin.style.display = "none";
	bodyRegister.style.display = "none";
	dialogContainer.style.display = "none";
}



var search = document.getElementById("searchButton");

function doClickGoods()
{
	document.getElementById("searchInput").value="请输入搜索商品";
	search.onclick(function()
	{
		searchWare();
	});
}

function doClickShop()
{
	
	document.getElementById("searchInput").value="请输入搜索店铺";
//	search.onclick(function()
//	{
//		searchStore();
//	});
}

function doClickAddress()
{

	document.getElementById("searchInput").value="请输入搜索地址";
//	search .onclick(function()
//	{
//		searchAddress();
//	});
}
